/**
 *    @file       udpsendthread.h
 *
 *    @brief      udpsendthread must start before udprecvthread starts in linux system for udp socket resuable property.
 *                by contraries, udpsendthread must start after udprecvthread starts in freebsd system.
 *    @details
 *
 *    @version    1.0
 *    @date       02/19/2014 12:22:33 PM
 *
 *    @author     Theophilus (), wangtf418@gmail.com
 */
#ifndef _SF_UDPSENDTHREAD_H_
#define _SF_UDPSENDTHREAD_H_
#include "synworkthread.h"
#include "sockbase.h"

class udpsendthread : public synworkthread
{
public:
	udpsendthread(bf_uint32_t type, bf_uint32_t size, bf_uint32_t index, const comargs *args);
	virtual ~udpsendthread();

public:
	virtual bf_int_t init();

protected:
	virtual bf_int_t proc_msg(message *msg);

protected:
	csocket m_socket;
};

#endif

